package com.bootdo.mall.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import com.bootdo.common.annotation.NotColumn;
import com.bootdo.common.fansheutils.FansheUtils;
import com.bootdo.common.fansheutils.JibenLei;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.haojiangbo.annotation.HapiFeild;


/**
 * 商品规格
 * 
 * @author haojiangbo
 * @email 2100272728@qq.com
 * @date 2019-11-08 16:19:17
 */
 @JsonInclude(JsonInclude.Include.NON_NULL)
public class GoodSpecs extends JibenLei {
	@NotColumn
	private static final long serialVersionUID = 1L;
	
	
	//id
	 @NotColumn 	@HapiFeild("id")
	private Long id;
	
	//商品ID
		@HapiFeild("商品ID")
	private Long goodId;
	
	//商品
		@HapiFeild("商品")
	private String goodName;
	
	//名字
		@HapiFeild("名字")
	private String name;
	
	//库存
		@HapiFeild("库存")
	private Integer stock;


	private Double integral;
	private Double returnIntegral;
	private Double price;

	//创建时间
		@HapiFeild("创建时间")
	private Date createTime;


		//销量
	private Integer salesNum;

	@NotColumn
	private Integer goodCartNum;

    public GoodSpecs(){
    	this.price = 0d;
    	this.integral = 0d;
    	this.returnIntegral =0d;
    	this.createTime = new Date();
    	this.salesNum = 0;
    	this.goodCartNum = 0;
    }

	public Integer getGoodCartNum() {
		return goodCartNum;
	}

	public void setGoodCartNum(Integer goodCartNum) {
		this.goodCartNum = goodCartNum;
	}

	public Integer getSalesNum() {
		return salesNum;
	}

	public void setSalesNum(Integer salesNum) {
		this.salesNum = salesNum;
	}

	public Double getIntegral() {
		return integral;
	}

	public void setIntegral(Double integral) {
		this.integral = integral;
	}

	public Double getReturnIntegral() {
		return returnIntegral;
	}

	public void setReturnIntegral(Double returnIntegral) {
		this.returnIntegral = returnIntegral;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	/**
	 * 设置：id
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 获取：id
	 */
	public Long getId() {
		return id;
	}
	/**
	 * 设置：商品ID
	 */
	public void setGoodId(Long goodId) {
		this.goodId = goodId;
	}
	/**
	 * 获取：商品ID
	 */
	public Long getGoodId() {
		return goodId;
	}
	/**
	 * 设置：商品
	 */
	public void setGoodName(String goodName) {
		this.goodName = goodName;
	}
	/**
	 * 获取：商品
	 */
	public String getGoodName() {
		return goodName;
	}
	/**
	 * 设置：名字
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * 获取：名字
	 */
	public String getName() {
		return name;
	}
	/**
	 * 设置：库存
	 */
	public void setStock(Integer stock) {
		this.stock = stock;
	}
	/**
	 * 获取：库存
	 */
	public Integer getStock() {
		return stock;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}


	@Override
	@JsonIgnore
	public List<HashMap<String, Object>> getFields() {
		// TODO Auto-generated method stub
		return FansheUtils.getFieldList(this);
	}


}
